
function AddClientLua( file, prefix )

	AddCSLuaFile( file )
	
	if prefix == nil then
		Print( "Loaded " .. file .. "  :  CLIENT" )
	end
	
end

function IncludeServerLua( file, prefix )

	include( file )
	
	if prefix == nil then
		Print( "Loaded " .. file .. "  :  SERVER" )
	end
	
end

function AddSharedLua( file, prefix )

	AddClientLua( file, prefix )
	IncludeServerLua( file, prefix )
	
end

-- Load base files

	-- Requirements
	require("datastream")
	
	-- Metas
	ply = FindMetaTable( "Player" )

	-- Shared
	AddSharedLua( "shared.lua", false )
	
	-- Client
	AddClientLua( "cl_init.lua" )
	AddClientLua( "client/class_debug.lua" )
	AddClientLua( "client/derma_functions.lua" )
	AddClientLua( "client/player_functions.lua" )
	AddClientLua( "client/notify_functions.lua" )
	
	-- Server
	IncludeServerLua( "server/class_functions.lua" )
	IncludeServerLua( "server/class_debug.lua" )
	IncludeServerLua( "server/player_functions.lua" )
	IncludeServerLua( "server/sound_functions.lua" )
	IncludeServerLua( "server/notify_functions.lua" )